package www.sofn.com.shopping.cart.domain.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.List;

@Data
@Schema(description = "购物车商品信息")
@Accessors(chain = true)
public class  ShoppingCartGoodsInfoVO {
    @Schema(description = "购物Id")
    private String id;
    @Schema(description = "商品Id")
    private String goodsId;
    @Schema(description = "商品名称")
    private String goodsName;
    @Schema(description = "属性信息")
    private List<AttrInfo> attrInfos;
    @Schema(description = "默认图片")
    private String defaultGoodsImg;
    @Schema(description = "会员总价")
    private  BigDecimal totalMemberPrice;
    @Schema(description = "市场总价")
    private  BigDecimal totalMarketPrice;

    @Data
    @Accessors(chain = true)
    @Schema(description = "属性信息")
    public static class AttrInfo{
        @Schema(description = "id")
        private String id;
        @Schema(description = "属性值")
        private String value; // 属性值
        @Schema(description = "会员价格")
        private BigDecimal memberPrice; //会员价格
        @Schema(description = "市场价格")
        private BigDecimal marketPrice;//市场价格
        @Schema(description = "数量")
        private Integer num;
    }
}


